angular.module('elife.controllers')
  .controller('ProductListCtrl', function($scope, $state, $http) {
    var vm = this;
    // 获取产品列表
    vm.getList = function() {
      $http.get('pages/home/productList/productList.json').success(function(result){
        vm.products = result.data
      })
    };
    vm.getList();
  });
